package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.io.Serializable;

/**
 *  剧集壳与超前点播模式关联
 */
@Data
@Entity
@Table(name = "advance_prdcont_relation")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AdvancePrdcontRelation implements Serializable {

    private static final long serialVersionUID = -6376128203078265497L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "ADVANCE_PRDCONT_RELATION_SEQ")
    @SequenceGenerator(name = "ADVANCE_PRDCONT_RELATION_SEQ", allocationSize = 1, sequenceName = "ADVANCE_PRDCONT_RELATION_SEQ")
    private Long id;

    /**
     * <b>Fields</b> prdContId : 壳节目id
     */
    @Column(name = "prd_cont_id")
    private Long prdContId;

    /**
     * <b>Fields</b> contentId : 壳内容id
     */
    @Column(name = "content_id")
    private Long contentId;

    /**
     * <b>Fields</b> modelId : 模式计费ID
     */
    @Column(name = "model_id")
    private Long modelId;
}
